<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Admin
  Date: 2022/7/18
  Time: 16:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="./addAccess">
    <table border="1">
        <tr>
            <td>负责人</td>
            <td><input type="text" name="principal"></td>
        </tr>
        <tr>
            <td>供货商</td>
            <td><input type="text" name="supplier"></td>
        </tr>
        <tr>
            <td>品牌</td>
            <td><input type="text" name="brand"></td>
        </tr>
        <tr>
            <td>楼宇</td>
            <td>
                <select name="hospital_id">
                    <c:forEach items="${buidings}" var="lists">
                        <option value="${lists.id}">${lists.name}</option>
                    </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <td>日期</td>
            <td><input type="date" name="addTime"></td>
        </tr>
        <tr>
            <td><input type="submit" value="提交"></td>
        </tr>
    </table>
</form>
</body>
</html>
